package com.zues.java_test.request_test;

import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import org.junit.jupiter.api.Test;

/**
 * 调用接口测试
 */
public class Demo1 {

    @Test
    void test1(){
        HttpResponse response = HttpRequest.get("http://127.0.0.1:1880/alarm/lamp")
                .form("open", 1)
                .execute();
        System.out.println(response.body());
    }


}
